home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 4882 / 4882.xpi / chrome / tabscope.jar / content / tabscope / overlay.xul < prev    next >
Extensible Markup Language  |  2007-11-28  |  1KB  |  35 lines

  1. <?xml version="1.0"?>
  2.  
  3. <?xml-stylesheet href="chrome://tabscope/content/overlay.css" type="text/css"?>
  4.  
  5. <overlay id="tabscopeOverlay"
  6.          xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  7.  
  8.     <script type="application/x-javascript"><![CDATA[
  9.         window.addEventListener("load", function(event) {
  10.             // convert legacy preference
  11.             var prefBranch = Components.classes["@mozilla.org/preferences-service;1"]
  12.                              .getService(Components.interfaces.nsIPrefBranch)
  13.                              .getBranch("extensions.tabscope.");
  14.             try {
  15.                 if (prefBranch.getBoolPref("upside_down")) {
  16.                     prefBranch.setIntPref("popup_alignment", 1);
  17.                     prefBranch.clearUserPref("upside_down");
  18.                 }
  19.             }
  20.             catch (ex) {
  21.             }
  22.             // attach tabscope popup
  23.             var fx3 = "PlacesUtils" in window;
  24.             var popup = document.createElement(fx3 ? "panel" : "popup");
  25.             popup.id = "tabscopePopup";
  26.             popup.setAttribute("class", "tabscope");
  27.             popup.setAttribute("browserid", "content");
  28.             if (navigator.platform.indexOf("Win") != 0)
  29.                 popup.setAttribute("noautohide", "true");
  30.             document.getElementById("mainPopupSet").appendChild(popup);
  31.         }, false);
  32.     ]]></script>
  33.  
  34. </overlay>
  35.